feat(new-webui): Add theme support with a toggle menu. - #935
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a theme management system to the log-viewer web UI, including a Zustand-based theme state store, Ant Design theme configuration, and a theme toggle menu item. The layout and sidebar are refactored to support the new theming, and new CSS classes are added to accommodate the updated sidebar structure. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ThemeToggleMenuItem
participant useThemeStore
participant AntdApp (ConfigProvider)
participant MainLayout
User->>ThemeToggleMenuItem: Click theme toggle
ThemeToggleMenuItem->>useThemeStore: setMode(nextMode)
useThemeStore-->>ThemeToggleMenuItem: Update mode & algorithm
useThemeStore-->>AntdApp (ConfigProvider): Provide updated algorithm
AntdApp (ConfigProvider)-->>MainLayout: Render with new theme
MainLayout-->>User: UI updates with new theme
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
sorry wrong branch pushed |
|
replaced by #937 |
Description
Checklist
breaking change.
Validation performed
Summary by CodeRabbit